import React from "react";
import { ComponentStory, ComponentMeta } from "@storybook/react-native";
import { MyAvatar } from "./Avatar";
import { View, Image } from "react-native";

const MyAvatarMeta: ComponentMeta<typeof MyAvatar> = {
  title: "MyAvatar",
  component: MyAvatar,
  args: {
    text: "Nick Lee",
    imgSrc: { uri: 'https://img2.baidu.com/it/u=2707683174,339664566&fm=253&fmt=auto&app=138&f=JPEG?w=751&h=500' },
  },
};

export default MyAvatarMeta;

type MyAvatarStory = ComponentStory<typeof MyAvatar>;

export const Basic: MyAvatarStory = (args) => <MyAvatar {...args} />;

